package com.diy.sigmund.diycommon.spring.config.dynamicthreadpool;

import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;

/**
 * 动态刷新线程池配置
 *
 * @author ylm-sigmund
 * @since 2023/1/29 22:26
 */
@ConfigurationProperties(prefix = "monitor.threadpool")
// @Component
public class DynamicThreadPoolProperties {

    @NestedConfigurationProperty
    private List<ThreadPoolProperties> executors;

    public List<ThreadPoolProperties> getExecutors() {
        return executors;
    }

    public void setExecutors(List<ThreadPoolProperties> executors) {
        this.executors = executors;
    }
}
